package crazyFace.system.app;

import android.graphics.Bitmap;

public class Bullet extends Entity{

	public Bullet(GameView gameView, Bitmap bmp, int direction, int x, int y) {
		super(gameView, bmp, 4, 1);
		aniRow = direction;
		this.x = x;
		this.y = y;
		life = (300 / GameView.gameDif);
		if (direction == 0){
			ySpeed = 14;
		}
		if (direction == 1){
			xSpeed = -14;
		}
		if (direction == 2){
			xSpeed = 14;
		}
		if (direction == 3){
			ySpeed = -14;
		}
	}
	
	// animation = 3 back, 1 left, 0 front, 2 right
	public void move(){
		
		x += xSpeed;
		y += ySpeed;
		
	}
}